package com.lwl.study.controller;

import com.lwl.study.pojo.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLException;
import java.util.List;

@RestController
@RequestMapping("account")
public class AccountController {

    @Autowired
    private com.lwl.study.dao.AccountDao AccountDao;

    @RequestMapping("findAll")
    private List<Account> findAll() throws SQLException {

        return AccountDao.findAll();
    }

}
